package com.liusand.common;

import com.liusand.pojo.Employee;

/**
 * @author :liusha
 * packageName :com.liusand.common
 * fileName :ThreadLocalUtils
 * creationTime :2022/11/24 11:16
 */
public class ThreadLocalUtils {
    private static ThreadLocal<Employee> threadLocal = new ThreadLocal<>();

    public static void setEmployee(Employee employee){
        threadLocal.set(employee);
    }

    public static String getId(){
        return threadLocal.get().getId();
    }


}
